﻿using UnityEngine;
using System.Collections;

public class GlobalController : MonoBehaviour {

	public float movementSpeed;

//	public CharacterController controller;

//	public float speed = 6.0F;
//	public float jumpSpeed = 8.0F;
//	public float gravity = 20.0F;
//	private Vector3 moveDirection = Vector3.zero;

	// Use this for initialization
	void Start () {
//		controller = GetComponent<CharacterController>();

	}
	
	// Update is called once per frame
	void Update () {

		if (Input.GetKey(KeyCode.D)){
			transform.Translate(Vector3.right * movementSpeed);
		}

//		moveDirection = new Vector3(Input.GetAxis("Horizontal"), Input.GetAxis("Vertical"), 0.0F);
//			moveDirection = transform.TransformDirection(moveDirection);
//			moveDirection *= speed;
//			if (Input.GetButton("Jump"))
//				moveDirection.y = jumpSpeed;
//			
//		moveDirection.y -= gravity * Time.deltaTime;
//		controller.Move(moveDirection * Time.deltaTime);

	}
}
